package cn.lijiancn01.demo.business.menu.controller;

import cn.lijiancn01.demo.business.menu.service.MenuService;
import cn.lijiancn01.demo.framework.model.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/menu")
public class MenuController {

    @Autowired
    private MenuService menuService;

    @GetMapping("list")
    public R list() {
        return R.data(menuService.list());
    }
}
